Skip to content

feat: added map feature, improved profile screen to view map #2

Open
code-with-zoro wants to merge 1 commit into
GoBuildOrg:mainfrom
code-with-zoro:feature/map-updates
Open

feat: added map feature, improved profile screen to view map #2
code-with-zoro wants to merge 1 commit into
GoBuildOrg:mainfrom
code-with-zoro:feature/map-updates

Conversation

@code-with-zoro
Copy link
Copy Markdown

Summary

Implemented a location permission flow and map navigation feature to help workers view directions and distance to job locations.

Changes Made

  • Added location permission handling to request user permission for accessing device location.

  • If location permission is not granted, the app prompts the user to enable it before fetching location data.

  • Implemented a View button in the Job Card that opens the map screen.

  • Map screen displays:

    • Directions to the job location
    • Distance between the worker and the job location.
  • Integrated location fetching logic to support map navigation.

Files Added

  • src/utils/permissionUtils.js
  • Map-related components and utilities.

Files Modified

  • ProfileScreen components for job card interaction.
  • App.js and navigation flow to support the map screen.
  • Supporting screens and API integration where required.

Testing

  • Tested locally on development build.
  • Verified location permission request flow.
  • Verified map navigation when clicking the View button.
  • Confirmed that distance and directions load correctly after permission is granted.

Notes

This feature improves worker navigation by allowing them to quickly view the route and distance to the job location directly from the job card.
Ready for review and feedback.

…distance from worker to user buy fetching worker live location
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant